import request from "@/utils/request";

export const list = (param) => {
  return request.get("/demo", param);
};

/* 获取健康咨询列表 */
export const healthChatList = (param) => {
  return request.post("chat/list", param);
};

/* 获取个人信息 */
export const getUserInfoApi = (params) => {
  return request.get("user/info".params);
};

/* 修改个人信息 */
export const editUserInfo = (params) => {
  return request.post("user/personal", params);
};

export const getPointInfo = (params) => {
  return request.post("user/pointsInfo", params);
};

// 提现
export const withdraw = (params) => {
  return request.post("user/withdraw", params);
};

// 会话列表
export const chatList = (params) => {
  return request.post("chat/list", params);
};

// 获取分享二维码
export const getShareQrcode = (params) => {
  return request.post("dealer.Poster/qrcode", params);
};
